* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
  color: #333
}

body {
  background-color: #f5f5f5;
  min-width: 230px;
  max-width: 550px;
  margin: 0 auto;
}

header .webName {
  width: 30rem;
  font-size: 4.6rem;
  letter-spacing: .8rem;
  text-align: center;
  margin: 2rem auto;
  color: #999;
}

main {
  background-color: #fff;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2), 0 25px 50px 0 rgba(0, 0, 0, 0.1);
}

main .todoBanner {
  position: relative;
  border: 0.1rem solid #f5f5f5;
  padding-left: 3.6rem;
  padding-right: 1rem;
}

main .todoAdderBanner {
  border-bottom: 0.15rem solid #f5f5f5;
}

.todoAdder {
  border: none;
  outline: none;
  width: 100%;
  height: 4rem;
  font-size: 1.5rem;
  /* font-style: italic; */
  /* box-shadow: inset 0 -2px 1px rgba(0, 0, 0, 0.03); */
}

main .todoBanner .checkbox {
  position: absolute;
  border: 0.1rem solid #e7e7e7;
  width: 2.2rem;
  height: 2.2rem;
  top: 50%;
  left: 1.6rem;
  transform: translate(-50%, -50%);
  text-align: center;
  line-height: 2.2rem;
  font-size: 1.5rem;
  color: #777;
  cursor: pointer;
  /* 禁止双击选中文字 */
  user-select: none;
}

main .todo {
  display: inline-block;
  width: 100%;
  height: 4rem;
  font-size: 1.5rem;
  line-height: 4rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

main .todo #showContentArea {
  transition: text-decoration .2s, color .4s;
}

main .todo .delTodo {
  position: absolute;
  color: #aaa;
  text-align: center;
  line-height: 4.32rem;
  height: 4.32rem;
  right: 0rem;
  bottom: 0rem;
  cursor: pointer;
  user-select: none;
  transition: background-color .4s, color .4s;
}

main .todo .delTodo:hover {
  color: #333;
}

main #todoList .radio {
  border-radius: 50%;
}

.todoChanger {
  border: none;
  outline: none;
  width: 100%;
  font-size: 1.5rem;
}

.todoChange {
  border: 1px solid #999;
  box-shadow: 0px 0.2px 0.9px rgba(0, 0, 0, 0.5) inset;
  z-index: 99999999999999999;
}

main .statusBar {
  padding: 1rem .5rem;
  display: flex;
  justify-content: space-between;
}

main .statusBar:first-child {
  flex: 1
}

main .statusBar .filter span:nth-child(2){
  margin: 0 .5rem;
}

main .statusBar:last-child {
  flex: 1;
}

main .statusBar #delCompletedTodos{
  visibility: hidden;
}

main .statusBar #showAllTodos,
main .statusBar #showActiveTodos,
main .statusBar #showCompletedTodos,
main .statusBar #delCompletedTodos {
  border-bottom: 2px solid #fff;
  cursor: pointer;
  user-select: none;
  transition: all .2s;
}

main .statusBar #showAllTodos:hover,
main .statusBar #showActiveTodos:hover,
main .statusBar #showCompletedTodos:hover,
main .statusBar #delCompletedTodos:hover {
  border-bottom: 2px solid #999;
}

main .statusBar #showAllTodos:active,
main .statusBar #showActiveTodos:active,
main .statusBar #showCompletedTodos:active,
main .statusBar #delCompletedTodos:active {
  border-bottom: 2px solid #000;
}

footer {
  margin: 5rem;
  text-align: center;
}

footer div {
  color: #999;
  margin: .4rem;
}

footer div:nth-child(2) {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

footer div:nth-child(2) span,
footer div:nth-child(2) a,
footer div:nth-child(2) img {
  display: block;
  color:#999;
  text-decoration: none;
}

footer div:nth-child(2) a {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

footer div:nth-child(2) img {
  height: 1.5rem;
}

footer a,
footer #myName {
  transition: all .2s;
  color: #999;
  text-decoration: underline;
}

footer a:hover,
footer #myName:hover {
  color: #666;
}

footer a:active,
footer #myName:active {
  color: #000;
}

.italic {
  font-style: italic !important;
}

.checkboxDeeperBorder {
  border: 0.1rem solid #c0c0c0 !important;
}

.completed {
  text-decoration: line-through;
  color: #999 !important;
}

.show {
  visibility: visible !important;
}